object Demo21Implicit {
  def main(args: Array[String]): Unit = {
    // 2、隐式转换变量
    implicit val defaultPrefix: String = "默认的后缀"

    def addPrefix(str: String)(implicit prefix: String): Unit = {
      println(str + "-" + prefix)
    }

    addPrefix("Hadoop")("大象")
    addPrefix("Hive")("蜂巢")
    addPrefix("Spark")("火花")

    addPrefix("HBase")

  }

}
